import { post } from "@/utils/ajax";

// 保存流程设计数据
export function saveModelEditor(modelData) {
  return post("/code/workflow/model/saveModelEditor", modelData);
}

// 获取分组数据
export function searchTree(modelData) {
  return post("/uni/category/info/searchTree", modelData);
}

// 保存场景设计
export function saveFlowFormModel(modelData) {
  return post("/code/form/model/saveFlowFormModel", modelData);
}

// 保存流程节点表单字段配置
export function saveNodeControls(data) {
  return post("/code/form/model/saveNodeControls", data);
}

// 查询流程节点表单字段配置
export function selectByVersionIdAndNodeId(data) {
  return post("/wf/code/node/control/selectByVersionIdAndNodeId", data);
}
